import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';

class ScoreScreen extends StatelessWidget {
  final score;
  final highscore;

  ScoreScreen({this.score, this.highscore});

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.all(15),
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        crossAxisAlignment: CrossAxisAlignment.start,
        children: [
          Row(
            children: [
              Text(
                '  打败了',
                style: TextStyle(
                  color: Color(0xFF7C6B52),
                  fontSize: 15,
                  fontWeight: FontWeight.bold,
                ),
              ),
              Text(
                '${score.toString()}个',
                style: TextStyle(
                  color: Color(0xFF241F18),
                  fontSize: 20,
                  fontWeight: FontWeight.bold,
                ),
              ),
              Text(
                '熊熊',
                style: TextStyle(
                  color: Color(0xFF7C6B52),
                  fontSize: 15,
                  fontWeight: FontWeight.bold,
                ),
              ),
            ],
          ),
          Row(
            children: [
              Text(
                '最多连续打败了',
                style: TextStyle(
                  color: Color(0xFF7C6B52),
                  fontSize: 15,
                  fontWeight: FontWeight.bold,
                ),
              ),
              Text(
                '${highscore.toString()}个',
                style: TextStyle(
                  color: Color(0xFF241F18),
                  fontSize: 20,
                  fontWeight: FontWeight.bold,
                ),
              ),
              Text(
                '熊熊  ',
                style: TextStyle(
                  color: Color(0xFF7C6B52),
                  fontSize: 15,
                  fontWeight: FontWeight.bold,
                ),
              ),
            ],
          ),
        ],
      ),
    );
  }
}
